import App from './App'
import Vuex from 'vuex'
import store from "store/index.js"
import uView from '@/uni_modules/uview-ui'



// #ifndef VUE3
import Vue from 'vue'
Vue.use(Vuex)
Vue.use(uView)
uni.$u.config.unit = 'rpx'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store,
  beforeCreate(){
      Vue.prototype.$bus = this;
    }
})



app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif